package cloudoer.blog.service;

import cloudoer.blog.entity.Article;

import java.io.File;
import java.util.List;

public interface ArticleService {
    List<Article> getAll();

    Article getById(String id);

    List<Article> getByType(String typeId);

    void add(Article article);

    List<Article> getByOrder(String orderBy);

    void update (Article article);

    void delete (String id, File imageFolder);

    int endorse(String id);
}
